//
//  SZYDetailScore.m
//  WCDBDemo
//
//  Created by jiangdong on 2018/4/2.
//  Copyright © 2018年 jiangdong. All rights reserved.
//

#import "SZYDetailScore.h"

@implementation SZYDetailScore

//在项目里model继承SZYJsonModel就不用手写归档解档了
//归档的时候调用
- (void)encodeWithCoder:(NSCoder *)encoder {

    [encoder encodeFloat:self.math forKey:@"math"];
    [encoder encodeFloat:self.english forKey:@"english"];
}

//解归档的时候调用
-(id)initWithCoder:(NSCoder *)aDecoder
{
    self = [super init];
    if (self)
    {
        self.math = [aDecoder decodeFloatForKey:@"math"];
        self.english = [aDecoder decodeFloatForKey:@"english"];
    }
    return self;
}



@end
